// 用户模块
import { makeAutoObservable } from "mobx"
import { http } from '@/utils'

class channelStore {
    channelList = []
    constructor() {
        makeAutoObservable(this)
    }
    getchannleList = async () => {
        const res = await http.get('/channels')
        // console.log(res.data)
        this.channelList = res.data.channels;
        // console.log('userInfo', this.userInfo);
    }
}

export default channelStore